package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@ToString
@ApiModel("")
@Table(name = "tb_resource")
public class TbResource {
    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotNull(message="不能为空")
    @Id
    private Integer id;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @Column(name = "res_key")
    private String resKey;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @Column(name = "res_name")
    private String resName;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @Column(name = "parent_id")
    private Integer parentId;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return res_key
     */
    public String getResKey() {
        return resKey;
    }

    /**
     * @param resKey
     */
    public void setResKey(String resKey) {
        this.resKey = resKey;
    }

    /**
     * @return res_name
     */
    public String getResName() {
        return resName;
    }

    /**
     * @param resName
     */
    public void setResName(String resName) {
        this.resName = resName;
    }

    /**
     * @return parent_id
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * @param parentId
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}